<template>
 <div>
  <HelloWorld @on-click="getList"></HelloWorld>
 </div>
</template>
<script setup lang='ts'>
import { ref,reactive} from 'vue'
import HelloWorld from './components/HelloWorld.vue'
// 父组件接受子组件的事件
const getList =(data:number[])=>{
console.log("我是子组件传过来的数据",data)
}
</script>
<style scoped lang='scss'>
</style>